package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Use;
import com.antdesignbackend.backend.entity.entityVo.UseVo;
import com.antdesignbackend.backend.mapper.UseMapper;
import com.antdesignbackend.backend.service.UseService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UseServiceImpl extends ServiceImpl<UseMapper, Use> implements UseService {
    @Autowired
    UseMapper useMapper;
    @Override
    public List<UseVo> search(QueryWrapper<UseVo> queryWrapper, Page<UseVo> page) {
        return useMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<UseVo> queryWrapper) {
        return useMapper.count(queryWrapper);
    }
}
